<template>
    <div class="search">
        
            <el-button type="success" icon="el-icon-printer" size="mini" @click="printMySendList">打印</el-button>
            <vue-easy-print v-show="false" ref="easyPrint" :table-show="false" :space-row="true">
            <mySendList></mySendList>
        </vue-easy-print>
      
       
        <div class="search-box">
            <el-input v-model="input" placeholder="查找..." size="mini">
                <el-button type="success" icon="el-icon-search" slot="append"></el-button>
            </el-input>
        </div>
    </div>
</template>

<script>
import vueEasyPrint from 'vue-easy-print'
import mySendList from "../components/mysendlist.vue";
export default {
    name: "search",
    data() {
        return {
            input:"",

        }

    },
    methods: {
        printMySendList() {

            this.$refs.easyPrint.print()
        }

    }
    , components: {
        vueEasyPrint,
        mySendList
    }

}
</script>

<style scoped>
.search{
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.search-box{
    width: 151px;
}

</style>